package com.fire.control.system.dto;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fire.control.system.entity.Device;

public class DeviceDTO extends Device{

	private static final long serialVersionUID = 1L;
	
	// 公司名称
	private String companyName;
	// 设备组名称
	private String groupName;
	//设备完整地址
	private String mergerName;
	// 联系电话
	private String telNumber;
	//设备组id
	private String groupId;
	//网关id
	private String gatewayId;
	//企业id
	private String companyId;
	//区域id
	private String areaId;
	//安全管理员id
	private String managerId;
	//安全巡检员id
	private String patrolId;
	//安全管理员
	private String manager;
	//安全巡检员
	private String patrol;
	//网关编号
	private String gatewayEui;
	//网关名称
	private String gatewayName;
	//报警id
	private String warningId;
	// 报警时间
	private Date startTime;
	// 报警描述
	private String warningDesc;
	// 处理状态
	private String currentStatus;
	// 省市区字符串
	@JsonIgnore
	private String areaAddr;
	// 省 市 区
	private String[] region;
	
	
	public String getGatewayEui() {
		return gatewayEui;
	}


	public void setGatewayEui(String gatewayEui) {
		this.gatewayEui = gatewayEui;
	}


	public String getWarningId() {
		return warningId;
	}


	public void setWarningId(String warningId) {
		this.warningId = warningId;
	}


	public String getCurrentStatus() {
		return currentStatus;
	}


	public void setCurrentStatus(String currentStatus) {
		this.currentStatus = currentStatus;
	}


	public String getAreaAddr() {
		return areaAddr;
	}


	public void setAreaAddr(String areaAddr) {
		this.areaAddr = areaAddr;
	}


	public String[] getRegion() {
		return region;
	}


	public void setRegion(String[] region) {
		this.region = region;
	}


	public Date getStartTime() {
		return startTime;
	}


	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}


	public String getWarningDesc() {
		return warningDesc;
	}


	public void setWarningDesc(String warningDesc) {
		this.warningDesc = warningDesc;
	}


	public String getGatewayName() {
		return gatewayName;
	}


	public void setGatewayName(String gatewayName) {
		this.gatewayName = gatewayName;
	}


	public String getPatrol() {
		return patrol;
	}


	public void setPatrol(String patrol) {
		this.patrol = patrol;
	}


	public String getManagerId() {
		return managerId;
	}


	public void setManagerId(String managerId) {
		this.managerId = managerId;
	}


	public String getPatrolId() {
		return patrolId;
	}


	public void setPatrolId(String patrolId) {
		this.patrolId = patrolId;
	}


	public String getAreaId() {
		return areaId;
	}


	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}


	public String getCompanyId() {
		return companyId;
	}


	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}


	public String getGatewayId() {
		return gatewayId;
	}


	public void setGatewayId(String gatewayId) {
		this.gatewayId = gatewayId;
	}


	public String getGroupId() {
		return groupId;
	}


	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}


	public String getTelNumber() {
		return telNumber;
	}


	public void setTelNumber(String telNumber) {
		this.telNumber = telNumber;
	}


	public String getManager() {
		return manager;
	}


	public void setManager(String manager) {
		this.manager = manager;
	}


	public String getCompanyName() {
		return companyName;
	}


	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}


	public String getGroupName() {
		return groupName;
	}


	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}


	public String getMergerName() {
		return mergerName;
	}


	public void setMergerName(String mergerName) {
		this.mergerName = mergerName;
	}


	public void setDevice(Device device){
		this.companyName = device.getCompany().getCompanyName();
		//this.gatewayNum = device.getGatewayNum(); //暂时无此项
		this.groupName = device.getDeviceGroup().getGroupName();
		//this.location = device.getLocation();
		//this.manager = ??  //负责人，此项数据如何获取？
	}
}
